home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / c_count-.0 / c_count- / c_count-7.0 / system.h < prev   
Encoding:
C/C++ Source or Header  |  1995-05-20  |  1.7 KB  |  100 lines

  1. /* $Id: system.h,v 7.9 1995/05/20 23:43:24 tom Exp $ */
  2.  
  3. #ifdef HAVE_CONFIG_H
  4.  
  5. # include "config.h"
  6. # define SYS_UNIX 1
  7.  
  8. #else
  9.     /* provide values for non-UNIX systems */
  10. # if defined(vms)
  11. #  include <stsdef.h>
  12. #  define SYS_VMS 1
  13. #  define EXIT_SUCCESS (STS$M_INHIB_MSG | STS$K_SUCCESS)
  14. #  define EXIT_FAILURE (STS$M_INHIB_MSG | STS$K_ERROR)
  15. # endif
  16.  
  17. # if defined(MSDOS) || defined(__MSDOS__)
  18. #  define SYS_MSDOS 1
  19. # endif
  20.  
  21. #define ANSI_PROTOS 1
  22. #define HAVE_STRCHR 1
  23.  
  24. #endif /* HAVE_CONFIG_H */
  25.  
  26. #ifndef ANSI_PROTOS
  27. #define ANSI_PROTOS 0
  28. #endif
  29.  
  30. #ifndef HAVE_GETOPT_H
  31. #define HAVE_GETOPT_H 0
  32. #endif
  33.  
  34. #ifndef HAVE_MALLOC_H
  35. #define HAVE_MALLOC_H 0
  36. #endif
  37.  
  38. #ifndef HAVE_STDLIB_H
  39. #define HAVE_STDLIB_H 1
  40. #endif
  41.  
  42. #ifndef HAVE_STRING_H
  43. #define HAVE_STRING_H 1
  44. #endif
  45.  
  46. #ifndef SYS_MSDOS
  47. #define SYS_MSDOS 0
  48. #endif
  49.  
  50. #ifndef SYS_UNIX
  51. #define SYS_UNIX 0
  52. #endif
  53.  
  54. #ifndef SYS_VMS
  55. #define SYS_VMS 0
  56. #endif
  57.  
  58. #ifndef DECLARED_GETOPT
  59. #define DECLARED_GETOPT 0
  60. #endif
  61.  
  62. #ifndef PRINT_ROUNDS_DOWN
  63. #define PRINT_ROUNDS_DOWN 0
  64. #endif
  65.  
  66.     /* Macros that ought to be defined on every system */
  67. #if ANSI_PROTOS
  68. #define ARGS(p) p
  69. #define _ARG(type,name) type name
  70. #define _DCL(type,name)
  71. #define NO_ARGS void
  72. #else
  73. #define ARGS(p) ()
  74. #define _ARG(type,name) name
  75. #define _DCL(type,name) type name;
  76. #define NO_ARGS
  77. #endif
  78.  
  79. #ifdef lint
  80. #define typeCalloc(type,elts) (type *)(elts)
  81. #else
  82. #define typeCalloc(type,elts) (type *)calloc(elts,sizeof(type))
  83. #endif
  84.  
  85. #ifndef TRUE
  86. #define TRUE  (1)
  87. #define FALSE (0)
  88. #endif
  89.  
  90. #undef EOS
  91. #define EOS    '\0'
  92.  
  93.     /* On VMS and MSDOS we can fake wildcards by embedding a directory
  94.      * scanning loop...
  95.      */
  96. #if !SYS_UNIX
  97. extern    int    has_wildcard(char *);
  98. extern    int    expand_wildcard(char *, int);
  99. #endif
  100.